package com.hotel.services.impl;

import com.hotel.daos.RoomTypeMapper;
import com.hotel.entitys.RoomType;
import com.hotel.services.RoomTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author chend
 * @time 2022/02/28 14:25:14
 */
@Service
@Transactional
public class RoomTypeImplService implements RoomTypeService {
    @Autowired
    private RoomTypeMapper roomTypeMapper ;
    @Override
    public List<RoomType> selAllType() {
        return roomTypeMapper.selAllType();
    }

    @Override
    public Integer addType(RoomType roomType) {
        return roomTypeMapper.addType(roomType);
    }

    @Override
    public Integer delById(Integer type_id) {
        return roomTypeMapper.delById(type_id);
    }

    @Override
    public Integer setType(RoomType roomType) {
        return roomTypeMapper.setType(roomType);
    }

    @Override
    public RoomType selTypeById(Integer type_id) {
        return roomTypeMapper.selTypeById(type_id);
    }
}
